<template>
  <div class="waringDetail">
    <div class="topWrapper">
      <div class="top-bar">
        <span v-for="(item, index) in list" :key="index" class="item" :class="acticeIndex == index ? 'selected' : ''" @click="acticeIndex = index">{{ item.label }}</span>
      </div>
      <div class="selectArea">
        <el-select v-model="vaues" :popper-append-to-body="false" size="small" />
      </div>
    </div>
    <div class="table-wrappr">
      <ScrollTable />
    </div>
  </div>
</template>
<script>
import ScrollTable from '@/components/scrollTable/index.vue';
export default {
  components: {
    ScrollTable
  },
  data() {
    return {
      vaues: '未复核',
      acticeIndex: 0,
      list: [
        {
          label: '火警',
          value: '1'
        },
        {
          label: '故障',
          value: '2'
        },
        {
          label: '监管',
          value: '3'
        },
        {
          label: '反馈',
          value: '4'
        },
        {
          label: '屏蔽',
          value: '5'
        },
        {
          label: '其他',
          value: '6'
        }
      ]
    };
  }
};
</script>
<style lang="scss" scoped>
.waringDetail {
  height: 100%;
  width: 100%;
  padding-top: px(18);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  .topWrapper {
    padding: 0 px(100) 0 px(135);
    position: relative;
    .selectArea {
      position: absolute;
      right: px(10);
      top: px(4);
      width: px(88);
      height: 100%;
    }
    .top-bar {
      height: px(38);
      display: flex;
      background: url('~@/assets/image/nav_bar.png') no-repeat center;
      background-size: 100% 100%;
      padding: 0 60px;
      align-items: center;
      .item {
        width: px(86);
        display: flex;
        flex: 1;
        justify-content: center;
        align-items: center;
        font-size: px(18);
        color: #fff;
        height: px(29);
        user-select: none;
        cursor: pointer;
        &.selected {
          background: linear-gradient(90deg, #1b72c5 0%, rgba(26, 112, 194, 0.23) 52%, #1b72c5 100%);
          border-radius: px(7);
          color: #00c8ff;
          font-weight: bold;
        }
      }
    }
  }
  .table-wrappr {
    flex: auto;
    margin-top: px(10);
    overflow: hidden;
  }
}
</style>
